package com.cnyz.mapper;

import com.cnyz.dto.QuestionDto;
import com.cnyz.entity.Question;
import com.cnyz.vo.QuestionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QuestionMapper {
    public int insertQuestion(Question question);
    public void insertQuestions(List<Question> questions);
    public void updateQuestion(Question question);
    public List<QuestionVo> getQuestionsPage(@Param("questionsId") List<Long> questionsId, String subject, Integer type, String file);
}
